package com.drug.mingkang.model;

import java.util.Date;
import java.io.Serializable;

/**
 * 分公司采购明细(ImmPurchaseDeatis)实体类
 *
 * @author wenchangjian
 * @since 2020-08-11 12:00:14
 */
public class ImmPurchaseDeatis implements Serializable {
    private static final long serialVersionUID = -64689388683552512L;
  /**
    * 采购明细id
    */
    private String deatisId;
  /**
    * 药品ID
    */
    private String drugId;
  /**
    * 采购单id
    */
    private String purchaseId;
  /**
    * 采购数量
    */
    private Integer count;
  /**
    * 采购价
    */
    private Double money;
  /**
    * 采购人
    */
    private String operator;
  /**
    * 采购时间
    */
    private Date operatingTime;
  /**
    * 是否有效
    */
    private Integer isva;
  /**
    * 排序
    */
    private Integer sort;
  /**
    * 备注
    */
    private String remark;

    /**
     * 药品名字
     */
    private String drugName;


    /**
     * 小计
     */
    private Double subtotal;

    public Double getSubtotal() {
        return subtotal=count*money;
    }

    public void setSubtotal(Double subtotal) {
        this.subtotal = subtotal;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getDeatisId() {
        return deatisId;
    }

    public void setDeatisId(String deatisId) {
        this.deatisId = deatisId;
    }
  
    public String getDrugId() {
        return drugId;
    }

    public void setDrugId(String drugId) {
        this.drugId = drugId;
    }
  
    public String getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(String purchaseId) {
        this.purchaseId = purchaseId;
    }
  
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
  
    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }
  
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
  
    public Date getOperatingTime() {
        return operatingTime;
    }

    public void setOperatingTime(Date operatingTime) {
        this.operatingTime = operatingTime;
    }
  
    public Integer getIsva() {
        return isva;
    }

    public void setIsva(Integer isva) {
        this.isva = isva;
    }
  
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
  
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public ImmPurchaseDeatis() {
    }

    public ImmPurchaseDeatis(String deatisId, String drugId, String purchaseId, Integer count, Double money, String operator, Date operatingTime, Integer isva, Integer sort, String remark, String drugName) {
        this.deatisId = deatisId;
        this.drugId = drugId;
        this.purchaseId = purchaseId;
        this.count = count;
        this.money = money;
        this.operator = operator;
        this.operatingTime = operatingTime;
        this.isva = isva;
        this.sort = sort;
        this.remark = remark;
        this.drugName = drugName;
    }

    @Override
    public String toString() {
        return "ImmPurchaseDeatis{" +
                "deatisId='" + deatisId + '\'' +
                ", drugId='" + drugId + '\'' +
                ", purchaseId='" + purchaseId + '\'' +
                ", count=" + count +
                ", money=" + money +
                ", operator='" + operator + '\'' +
                ", operatingTime=" + operatingTime +
                ", isva=" + isva +
                ", sort=" + sort +
                ", remark='" + remark + '\'' +
                ", drugName='" + drugName + '\'' +
                '}';
    }
}